package Mash.UI;

import javax.swing.*;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;/*Copyright (c)  Sergey Schekochikhin (Genocidicbunny)
 *$name.java created on Jul 25, 2009 1:27:43 AM
 */

public class GameMain extends JFrame implements KeyListener {
	public GameMain(){
		setUndecorated(true);
		setVisible(true);
		setSize(700,700);
		addKeyListener(this);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	public void keyTyped( KeyEvent k){

	}public void keyPressed( KeyEvent e ) {
		int kcode = e.getKeyCode();
		if(kcode == KeyEvent.VK_ESCAPE)
			System.exit(7);
	}

	public void keyReleased( KeyEvent e ) {

	}
}
